← Back to issue list

override-build exits prematurely, part build succeeds

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2011993
Type
issue
State
open
Author
~awe
Labels
Created
2023-03-16 21:03:51.215701+00:00
Updated
2023-03-16 21:10:13.373744+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

I recently worked with a customer to help them enable video accelerated playback on a their device running Ubuntu Core, and one of the changes necessary was to switch from standard Flutter to a fork called Flutter-elinux which provides a new backend which doesn't rely on GTK. I ran into a problem with their snap build which I haven't yet been able to root cause. For the sake of this bug, I'm using the workshops snap maintained by the Ubuntu Desktop team, as it exhibits the same behavior as the customer's snap when I update it to use flutter-elinux. The problem I'm seeing is that when the workshops part runs, the override-build scriptlet exits prematurely, yet snapcraft seems to think the build of the part was successful. This results in the snap build failing because the actual binary 'bin/workshops', isn't found when the snap is packed. Note - the customer found a workaround, namely to run the first flutter-elinux command (e.g. `flutter-elinux precache`) in an override-stage scriptlet in the flutter-git part, however I would still like to figure out why an override-build scriptlet could exit prematurely, but not trigger a build stage failure. Snapcraft version: 7.x Core: 22 Build machine: 22.04 LTS Desktop Extensions: gnome Workshop/flutter-elinux branch that fails: https://github.com/tonyespy/workshops/tree/flutter-elinux Workshop/flutter-elinux branch that works: https://github.com/tonyespy/workshops/tree/flutter-elinux-fix

Evaluation history

No evaluation history available.